package com.aaa.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Log {
    private Integer id;
    private String login_name;
    private String user_name;
    private String ip;
    private String class_name;
    private String method_name;
    private String params;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;
    private Integer page;
    private Integer limit;
    private String field;
    private String order;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLogin_name() {
        return login_name;
    }

    public void setLogin_name(String login_name) {
        this.login_name = login_name;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public String getMethod_name() {
        return method_name;
    }

    public void setMethod_name(String method_name) {
        this.method_name = method_name;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Log() {
    }

    public Log(Integer id, String login_name, String user_name, String ip, String class_name, String method_name, String params, Date create_time, Integer page, Integer limit, String field, String order) {
        this.id = id;
        this.login_name = login_name;
        this.user_name = user_name;
        this.ip = ip;
        this.class_name = class_name;
        this.method_name = method_name;
        this.params = params;
        this.create_time = create_time;
        this.page = page;
        this.limit = limit;
        this.field = field;
        this.order = order;
    }

    @Override
    public String toString() {
        return "Log{" +
                "id=" + id +
                ", login_name='" + login_name + '\'' +
                ", user_name='" + user_name + '\'' +
                ", ip='" + ip + '\'' +
                ", class_name='" + class_name + '\'' +
                ", method_name='" + method_name + '\'' +
                ", params='" + params + '\'' +
                ", create_time=" + create_time +
                ", page=" + page +
                ", limit=" + limit +
                ", field='" + field + '\'' +
                ", order='" + order + '\'' +
                '}';
    }
}
